package cn.jbolt.xd;

import cn.jbolt.common.model.xd.XdBillAccount;
import cn.jbolt.common.model.xd.XdBillFlows;
import cn.jbolt.common.model.xd.XdBillXingdongZsyh0608;
import cn.jbolt.common.model.xd.XdBillZixiongWeixin6216;
import cn.jbolt.core.base.config.JBoltConfig;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.jfinal.plugin.druid.DruidPlugin;

public class XdDBUtils {

    public static void contect(){
        DruidPlugin druidPlugin = JBoltConfig.createDruidPlugin();
        // 配置ActiveRecord插件
        ActiveRecordPlugin arp = new ActiveRecordPlugin(druidPlugin);
        arp.addMapping("xd_bill_xingdong_zsyh0608","id", XdBillXingdongZsyh0608.class);
        arp.addMapping("xd_bill_zixiong_weixin6216","id", XdBillZixiongWeixin6216.class);
        arp.addMapping("xd_bill_account","id", XdBillAccount.class);
        arp.addMapping("xd_bill_flows","id", XdBillFlows.class);
        druidPlugin.start();
        arp.start();
    }


}
